
// 根据环境来选择api地址
let baseUrl = window.location.hostname;
console.log(baseUrl)
let BASE_URL_FOR_API = "";
let INV_HOST = "";
switch (baseUrl) {
    case "localhost":
        BASE_URL_FOR_API = "https://staging-api.huoxingy.com/";
        INV_HOST = "https://staging-api.huoxingy.com/v1/inv/"
        break;
        case "192.168.2.28":
            BASE_URL_FOR_API = "https://staging-api.huoxingy.com/";
            INV_HOST = "https://staging-api.huoxingy.com/v1/inv/"
            break;
    case "staging-boss.huoxingy.com":
        BASE_URL_FOR_API = "https://staging-api.huoxingy.com/";
        INV_HOST = "https://staging-api.huoxingy.com/v1/inv/"
        break;
    case "prod-test-boss.huoxingy.com":
        BASE_URL_FOR_API = "https://prod-api.huoxingy.com/";
        INV_HOST = "https://prod-api.huoxingy.com/v1/inv/"
        break;
    default:
        BASE_URL_FOR_API = 'https://prod-api.huoxingy.com/';
        INV_HOST = "https://prod-api.huoxingy.com/v1/inv/"
        break;
}
// 
export const INV_URL = INV_HOST;
window.API_BASE_URL = BASE_URL_FOR_API;
export const API_BASE_URL = BASE_URL_FOR_API;